#nullable disable
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using Game.Data.Api;

namespace aspnetapp.Counter
{
    [ApiController]
    [Route(ApiNotice.Api)]
    public class NoticeController : ControllerBase
    {
        private readonly NoticeContext _context;

        public NoticeController(NoticeContext context)
        {
            _context = context;
        }

        [HttpGet]
        public async Task<ActionResult<ApiNoticeResponse>> GetFunction()
        {
            return Ok(new ApiNoticeResponse { content = "励志做100款游戏，Guaji开发中ing" });
        }

        [HttpPost]
        public async Task<ActionResult<ApiNoticeResponse>> PostFunction(ApiNoticeRequest data)
        {
            return new ApiNoticeResponse { content = "励志做100款游戏，Guaji开发中ing" };
        }
    }
}
